package com.designpatterns.adapterpattern;

public class ChickenToDuckAdaptor implements Duck{
    private Chicken chicken;

    public ChickenToDuckAdaptor(Chicken chicken) {
        this.chicken = chicken;
    }

    @Override
    public void fly() {
        chicken.fly();
    }

    @Override
    public void quack() {
        chicken.crow();
    }
}
